{% load static %}
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>{{title}}</title>

    <link rel="shortcut icon" href="{% static "favicon.ico"%}">
    <link href="{% static "css/bootstrap.min.css"%}"rel="stylesheet">
    <link href="{% static "css/font-awesome.min.css"%}" rel="stylesheet">
    <link href="{% static "css/plugins/iCheck/custom.css"%}" rel="stylesheet">
    <link href="{% static "css/animate.min.css"%}" rel="stylesheet">
    <link href="{% static "css/style.min.css"%}" rel="stylesheet">
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>

</head>

<body class="gray-bg">



    <div class="middle-box text-center loginscreen   animated fadeInDown">
        <div>
            <div>

                <h2>创建管理员账号</h2>

            </div>
            <h3>欢迎使用DngAdmin后台开发框架</h3>
            <p>极简极速开发</p>



{% if shibai %}
<div class="alert alert-danger">
  {{shibai}}
 </div>

<a href="/dngadmin/install/">
<button  class="btn btn-w-m btn-danger">上一步：重新注册</button>
</a>

{% elif uid.username_str %}
<div class="alert alert-success">
创建账号:{{uid.username_str}}
 </div>
            <div class="alert alert-success">
    并且创建了安全登录链接<br><br>
   http://{{yuming_url}}/dngadmin/longin/?dngurl={{anquan_url.entrance_str}}<br><br>
    请复制保存上面链接
 </div>



<a href="/dngadmin/longin/?dngurl={{anquan_url.entrance_str}}" class="btn btn-primary m-t">下一步：安全入口登录</a>

{% else %}
<div class="alert alert-danger">
  发生意外！没有注册数据
 </div>

<a href="/dngadmin/install/">
<button  class="btn btn-w-m btn-danger">返回上一步：重新注册</button>
</a>
{% endif %}




            <p class="m-t"> <small>技术支持：</strong> DngAdmin后台系统 &copy; 2020-2030</small> </p>
        </div>
    </div>





    <!-- Mainly scripts -->
    <script src="{% static "js/jquery.min.js" %}"></script>
    <script src="{% static "js/bootstrap.min.js" %}"></script>
    <script src="{% static "js/plugins/iCheck/icheck.min.js" %}"></script>

    <script>

        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});

    </script>

</body>

</html>
